package com.hxzy.research.mapper;

import com.hxzy.research.pojo.TblUser;

import java.util.List;

public interface TblUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TblUser record);

    int insertSelective(TblUser record);

    TblUser selectByPrimaryKey(Integer id);
    //登录验证--查询用户信息
    public List<TblUser> selectUserList()throws Exception;
    //通过用户名查询 是否为管理员用户
    public TblUser selectUserByName(String username) throws Exception;

    int updateByPrimaryKeySelective(TblUser record);

    int updateByPrimaryKey(TblUser record);
    //执行user表添加
    public void addUser(TblUser tblUser)throws Exception;

    //通过userId查到要修改的信息用户
    public TblUser findUserByUserId(Integer userId)throws Exception;

    //执行修改--先修改user表
    public void updateUser(TblUser tblUser)throws Exception;

    //执行删除-先删除user表
    public void deleteUser(Integer userId)throws Exception;
}